- @selected = 'make'
#make
  .head
    .titleText 正在制作
    %input.projectName{ :value => @project.name || '填入名称' }
    .buttons
      %input.download{ :type => :button, :value => "下载" }
      %input.archive{ :type => :button, :value => "归档" }
  .clear
  .makeZone
    .comList
      .hoverMenu.hidden
        %img.add{ :src => '/images/add.gif' }
        %img.moveup{ :src => '/images/moveup.gif' }
        %img.movedown{ :src => '/images/movedown.gif' }
        %img.remove{ :src => '/images/remove.gif' }
        
    .comEdit
      .row
        .label 标题
        .control
          %input.title
          %img.fill.button{ :src => '/images/refresh.gif'}
      .row
        .label 模板
        .control
          %input.resource
          %img.findResource.button{ :src => '/images/search.gif'}
      .row
        .label 内容
        .control
          %textarea.body{ :cols => 60, :rows => 10 }
      .buttons
        %input.save{ :type => :button, :value => "保存" }
        %input.clear{ :type => :button, :value => "清除" }
  .clear

- if @payload
  %script{:language => 'javascript'}
    :plain
      var loadPayload = function () {
        var payload = '#{@payload.to_json}';
        projectLoaded(payload);
      }
      $(loadPayload);
